import { accurateSearchUser } from '../services/situation';

export const onRequestNickName = async ({ keyWords }: any) => {
  if (keyWords) {
    const data = (await accurateSearchUser({ param: keyWords }))?.result;
    const list = data?.map((item: any) => {
      return { label: `${item.nickName}(${item.phone})`, value: item.uid }
    })
    return list;
  }
};
